import { ScrollView, View, Text, Image } from '@tarojs/components';
import React, { Component } from 'react';
import Taro, { getCurrentInstance } from '@tarojs/taro';
import { connect } from 'react-redux';
import './index.less';
import * as T from './types';
import actions from './actions';
import { store2Props } from './selectors';

actions().actions.loadReducer();
// @ts-ignore
@connect<Partial<T.IProps>, any>(store2Props, actions)
export default class Index extends Component<Partial<T.IProps>, any> {
  constructor(props) {
    super(props);
    this.state = {
      message: []
    };
  }

  componentDidMount() { }

  componentDidShow() { }

  componentWillUnmount() {
    this.props.actions.clean();
  }

  render() {
    let { message } = this.state;
    return (
      <ScrollView className="packageAMessageDetail" scrollY>
        <View>
          <Text className='title'>
            {/* {msgInfo.title} */}消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息
          </Text>
        </View>
        <View>
          <Text className='createDateStr'>
            {/* {msgInfo.createDateStr} */}2023-03-23 00:00:00
          </Text>
        </View>
        <View>
          <Text className='content'>
            {/* {msgInfo.content} */}消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息消息
          </Text>
        </View>
      </ScrollView>
    );
  }
}
